package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-24
 * Description: 优惠券订单
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class VoucherOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JSONField(name = "ID")
    private Long id;

    /**
     * 下单的用户id
     */
    @JSONField(name = "USER_ID")
    private Long userId;

    /**
     * 购买的代金券id
     */
    @JSONField(name = "VOUCHER_ID")
    private Long voucherId;

    /**
     * 支付方式 1：余额支付；2：支付宝；3：微信
     */
    @JSONField(name = "PAY_TYPE")
    private Integer payType;

    /**
     * 订单状态，1：未支付；2：已支付；3：已核销；4：已取消；5：退款中；6：已退款
     */
    @JSONField(name = "STATUS")
    private Integer status;

    /**
     * 下单时间
     */
    @JSONField(name = "CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 支付时间
     */
    @JSONField(name = "PAY_TIME")
    private LocalDateTime payTime;

    /**
     * 核销时间
     */
    @JSONField(name = "USE_TIME")
    private LocalDateTime useTime;

    /**
     * 退款时间
     */
    @JSONField(name = "REFUND_TIME")
    private LocalDateTime refundTime;

    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private LocalDateTime updateTime;


}
